﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CustomerAdd.aspx.cs" Inherits="CustomersWithOrders.CustomerAdd" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:ValidationSummary ID="ValidationSummary1" runat="server" ForeColor="Red" />
        <table>
            <tr>
                <td>Customer name:</td>
                <td>
                    <asp:TextBox ID="txtCustomerName" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtCustomerName" ErrorMessage="Set name" ForeColor="Red">*</asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>Customer adress:</td>
                <td>
                    <asp:TextBox ID="txtCustomerAdress" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtCustomerAdress" ErrorMessage="Set adress" ForeColor="Red">*</asp:RequiredFieldValidator>
                </td>
            </tr>
            
            <tr>
                <td >
                    <asp:Button ID="btnSave" runat="server" Text="Save" OnClick="btnSave_Click"  />
                    
                </td>
                <td>
                    <asp:Button ID="btnCancel" runat="server" Text="Cancel" OnClick="btnCancel_Click" CauseValidation="false" />
                    
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
